package com.suntront.lib_db.table;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

/**
 * Created by MSI1 on 2017/3/1.
 */
@Entity(tableName = "MeterT")
public class MeterT {

    /**
     * 表册ID(RosterId)
     * 表册编码(RosterCode)
     * 表册名称(RosterName)
     * 抄表员ID(AdminId)
     * 抄表员姓名(AdminName)
     * 户数(UserCount)
     * 已抄个数(CopyCount)
     * 未抄个数(UnCopyCount)
     * 上传个数(UpLoadCount)
     * 未上传个数(UnUpLoadCount)
     * 已上传表井(UpLoadWell)
     * 未上传表井(UnUpLoadWell)
     * 已上传NFC(UpLoadNfc)
     * 未上传NFC(UnUpLoadNfc)
     * 是否下载(isLoad)
     * 用户用水属性信息未上传个数（unUpUserCount）
     */
    @PrimaryKey(autoGenerate = true)
    private int id;
    @ColumnInfo(name = "rosterId")
    private int rosterId;
    @ColumnInfo(name = "rosterCode")
    private String rosterCode;
    @ColumnInfo(name = "rosterName")
    private String rosterName;
    @ColumnInfo(name = "AdminId")
    private int AdminId;
    @ColumnInfo(name = "adminName")
    private String adminName;
    @ColumnInfo(name = "UserCount")
    private int UserCount;
    @ColumnInfo(name = "copyCount")
    private int copyCount;
    @ColumnInfo(name = "unCopyCount")
    private int unCopyCount;
    @ColumnInfo(name = "upLoadCount")
    private int upLoadCount;
    @ColumnInfo(name = "unUpLoadCount")
    private int unUpLoadCount;
    @ColumnInfo(name = "upLoadWell")
    private int upLoadWell;
    @ColumnInfo(name = "unUpLoadWell")
    private int unUpLoadWell;
    @ColumnInfo(name = "upLoadNfc")
    private int upLoadNfc;
    @ColumnInfo(name = "unUpLoadNfc")
    private int unUpLoadNfc;
    @ColumnInfo(name = "isLoad")
    private boolean isLoad;
    @ColumnInfo(name = "unUpUserCount")
    private int unUpUserCount;
    @ColumnInfo(name = "isUpdateOrder")
    private boolean isUpdateOrder;

    // 是否被选中，默认否(自用字段，数据库中忽略此字段)
    @Ignore
    private boolean isChoose = false;

    public boolean isUpdateOrder() {
        return isUpdateOrder;
    }

    public void setUpdateOrder(boolean updateOrder) {
        isUpdateOrder = updateOrder;
    }

    private boolean isopen;//用于箭头指向

    public boolean isopen() {
        return isopen;
    }

    public void setIsopen(boolean isopen) {
        this.isopen = isopen;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getRosterId() {
        return rosterId;
    }

    public void setRosterId(int rosterId) {
        this.rosterId = rosterId;
    }

    public String getRosterCode() {
        return rosterCode;
    }

    public void setRosterCode(String rosterCode) {
        this.rosterCode = rosterCode;
    }

    public String getRosterName() {
        return rosterName;
    }

    public void setRosterName(String rosterName) {
        this.rosterName = rosterName;
    }

    public int getAdminId() {
        return AdminId;
    }

    public void setAdminId(int adminId) {
        AdminId = adminId;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public int getUserCount() {
        return UserCount;
    }

    public void setUserCount(int userCount) {
        UserCount = userCount;
    }

    public int getCopyCount() {
        return copyCount;
    }

    public void setCopyCount(int copyCount) {
        this.copyCount = copyCount;
    }

    public int getUnCopyCount() {
        return unCopyCount;
    }

    public void setUnCopyCount(int unCopyCount) {
        this.unCopyCount = unCopyCount;
    }

    public int getUpLoadCount() {
        return upLoadCount;
    }

    public void setUpLoadCount(int upLoadCount) {
        this.upLoadCount = upLoadCount;
    }

    public int getUnUpLoadCount() {
        return unUpLoadCount;
    }

    public void setUnUpLoadCount(int unUpLoadCount) {
        this.unUpLoadCount = unUpLoadCount;
    }

    public int getUpLoadWell() {
        return upLoadWell;
    }

    public void setUpLoadWell(int upLoadWell) {
        this.upLoadWell = upLoadWell;
    }

    public int getUnUpLoadWell() {
        return unUpLoadWell;
    }

    public void setUnUpLoadWell(int unUpLoadWell) {
        this.unUpLoadWell = unUpLoadWell;
    }

    public boolean isLoad() {
        return isLoad;
    }

    public void setLoad(boolean load) {
        isLoad = load;
    }

    public int getUnUpUserCount() {
        return unUpUserCount;
    }

    public void setUnUpUserCount(int unUpUserCount) {
        this.unUpUserCount = unUpUserCount;
    }

    public int getUpLoadNfc() {
        return upLoadNfc;
    }

    public void setUpLoadNfc(int upLoadNfc) {
        this.upLoadNfc = upLoadNfc;
    }

    public int getUnUpLoadNfc() {
        return unUpLoadNfc;
    }

    public void setUnUpLoadNfc(int unUpLoadNfc) {
        this.unUpLoadNfc = unUpLoadNfc;
    }

    public boolean isChoose() {
        return isChoose;
    }

    public void setChoose(boolean choose) {
        isChoose = choose;
    }
}

